Optimal. Leaf size=56 \[ \frac{x^{m+1} (A b-a B) \, _2F_1\left (1,m+1;m+2;-\frac{b x}{a}\right )}{a b (m+1)}+\frac{B x^{m+1}}{b (m+1)} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.0748232, antiderivative size = 56, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 16, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.125 \[ \frac{x^{m+1} (A b-a B) \, _2F_1\left (1,m+1;m+2;-\frac{b x}{a}\right )}{a b (m+1)}+\frac{B x^{m+1}}{b (m+1)} \]
Antiderivative was successfully verified.
[In] Int[(x^m*(A + B*x))/(a + b*x),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 7.43386, size = 41, normalized size = 0.73 \[ \frac{B x^{m + 1}}{b \left (m + 1\right )} + \frac{x^{m + 1} \left (A b - B a\right ){{}_{2}F_{1}\left (\begin{matrix} 1, m + 1 \\ m + 2 \end{matrix}\middle |{- \frac{b x}{a}} \right )}}{a b \left (m + 1\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate(x**m*(B*x+A)/(b*x+a),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.0579569, size = 45, normalized size = 0.8 \[ \frac{x^{m+1} \left ((A b-a B) \, _2F_1\left (1,m+1;m+2;-\frac{b x}{a}\right )+a B\right )}{a b (m+1)} \]
Antiderivative was successfully verified.
[In] Integrate[(x^m*(A + B*x))/(a + b*x),x]
[Out]
_______________________________________________________________________________________
Maple [F] time = 0.061, size = 0, normalized size = 0. \[ \int{\frac{{x}^{m} \left ( Bx+A \right ) }{bx+a}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int(x^m*(B*x+A)/(b*x+a),x)
[Out]
_______________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \[ \int \frac{{\left (B x + A\right )} x^{m}}{b x + a}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x + A)*x^m/(b*x + a),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \[{\rm integral}\left (\frac{{\left (B x + A\right )} x^{m}}{b x + a}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x + A)*x^m/(b*x + a),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 6.21045, size = 136, normalized size = 2.43 \[ \frac{A m x x^{m} \Phi \left (\frac{b x e^{i \pi }}{a}, 1, m + 1\right ) \Gamma \left (m + 1\right )}{a \Gamma \left (m + 2\right )} + \frac{A x x^{m} \Phi \left (\frac{b x e^{i \pi }}{a}, 1, m + 1\right ) \Gamma \left (m + 1\right )}{a \Gamma \left (m + 2\right )} + \frac{B m x^{2} x^{m} \Phi \left (\frac{b x e^{i \pi }}{a}, 1, m + 2\right ) \Gamma \left (m + 2\right )}{a \Gamma \left (m + 3\right )} + \frac{2 B x^{2} x^{m} \Phi \left (\frac{b x e^{i \pi }}{a}, 1, m + 2\right ) \Gamma \left (m + 2\right )}{a \Gamma \left (m + 3\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(x**m*(B*x+A)/(b*x+a),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [F] time = 0., size = 0, normalized size = 0. \[ \int \frac{{\left (B x + A\right )} x^{m}}{b x + a}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x + A)*x^m/(b*x + a),x, algorithm="giac")
[Out]